ex_ip='14.155.'
befor=$1
if [ -z "$1" ]; then
	befor=1
fi
hq_user=`count_hq_user.yml -e befor=$befor |grep 客户|grep -v "$ex_ip"|sort|uniq|wc -l`
hq_sub_user=`count_hq_sub.yml -e befor=$befor |grep 客户|grep -v "$ex_ip"|sort|uniq|wc -l`
td_user=`count_td_user.yml -e befor=$befor |grep -o '客户.*:'|grep -v "$ex_ip"|sort|uniq|wc -l`
td_order_count=`count_td_order.yml -e befor=$befor |grep -o '客户.*:'|grep -v "$ex_ip"|wc -l`
td_order_user=`count_td_order.yml -e befor=$befor |grep -o '客户.*:'|grep -v "$ex_ip"|sort|uniq|wc -l`
echo "行情连接用户数:" $hq_user
echo "行情访问用户数:" $hq_sub_user
echo "交易登录用户数:" $td_user
echo "交易用户数:" $td_order_user
echo "交易数:" $td_order_count
